<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::namespace('Admin')->group(function () {
		//登录页面
		Route::get('/login','LoginController@login');
		Route::post('/login_do', 'LoginController@login_do');

		Route::group(['middleware' =>'admin'],function(){

			Route::get('/','IndexController@index');
			Route::get('login_up', 'LoginController@login_up');

			Route::get('member_edit','LoginController@member_edit');
			Route::post('update_password','LoginController@login_edit_pwd');

			//后台页面
			Route::get('/index','IndexController@index');

			//光联新闻
			Route::get('/news','NewController@lists');
			Route::get('/add_new','NewController@add_article');
			Route::get('/del_new/{id}','NewController@del_article');
			Route::get('/edit_new/{id}','NewController@edit_article');
			Route::post('/add_article_do','NewController@add_article_do');

			//产品添加
			Route::get('/product','ProductController@lists');
			Route::get('/add_product','ProductController@add_product');
			Route::get('/del_product/{id}','NewController@del_article');
			Route::get('/edit_product/{id}','ProductController@edit_product');
			Route::post('/add_product_do','ProductController@add_product_do');

			//网络架构
			Route::get('/architecture/{user_id}','ArchitectureCotroller@lists');
			Route::get('/add_architecture/{user_id}','ArchitectureCotroller@add_article');
			Route::get('/edit_architecture/{id}','ArchitectureCotroller@edit_article');
			Route::post('/add_architecture_do','ArchitectureCotroller@add_article_do');

			//会员列表
			Route::get('/user','UserController@lists');
			Route::get('/add_user','UserController@add_user');
			Route::get('/menu_user_left/{id}','UserController@menu_user_left');
			Route::get('/edit_user/{id}','UserController@edit_user');
			Route::get('/del_user/{id}','UserController@del_user');
			Route::post('/add_user_do','UserController@add_user_do');

			//服务报告
			Route::get('/service/{user_id}','ServiceCotroller@lists');
			Route::get('/add_service/{user_id}','ServiceCotroller@add_service');
			Route::get('/edit_service/{id}','ServiceCotroller@edit_service');
			Route::post('/add_service_do','ServiceCotroller@add_service_do');

			//广告列表
			Route::get('/banner','BannerController@lists');
			Route::get('/add_banner','BannerController@add_banner');
			Route::get('/edit_banner/{id}','BannerController@edit_banner');
			Route::get('/del_banner/{id}','BannerController@del_banner');
			Route::post('/add_banner_do','BannerController@add_banner_do');

			//地图列表
			Route::get('/city_lists','MapControler@city_lists');
			Route::get('/city_edit/{id}','MapControler@city_edit');
			Route::get('/city_add','MapControler@city_add');
			Route::get('/city_del/{id}','MapControler@city_del');
			Route::post('/city_add_do','MapControler@city_add_do');

			//世界地图
			Route::get('/world_city_lists','WorldMapControler@city_lists');
			Route::get('/world_city_edit/{id}','WorldMapControler@city_edit');
			Route::get('/world_city_add','WorldMapControler@city_add');
			Route::get('/world_city_del/{id}','WorldMapControler@city_del');
			Route::post('/world_city_add_do','WorldMapControler@city_add_do');

			//地图引导添加
			Route::get('/city_guide/{id}','MapControler@city_lists_info');
			Route::get('/city_guide_add/{city_id}','MapControler@city_guide_add');
			Route::get('/city_guide_edit/{id}/{city_id}','MapControler@city_guide_edit');
			Route::post('/city_guide_add_do','MapControler@city_guide_add_do');
			Route::get('/city_guide_del/{id}','MapControler@city_guide_del');

			//世界地图引导
			Route::get('/world_city_guide/{id}','WorldMapControler@city_lists_info');
			Route::get('/world_city_guide_add/{city_id}','WorldMapControler@city_guide_add');
			Route::get('/world_city_guide_edit/{id}/{city_id}','WorldMapControler@city_guide_edit');
			Route::post('/world_city_guide_add_do','WorldMapControler@city_guide_add_do');
			Route::get('/world_city_guide_del/{id}','WorldMapControler@city_guide_del');

			//更新栏目权限
			Route::post('/add_menu_user','UserController@add_menu_user');

			//后台账号管理
			Route::get('/administrator','AdministratorController@lists');
			Route::get('/admin_add','AdministratorController@admin_add');
			Route::get('/admin_edit/{id}','AdministratorController@admin_edit');
			Route::get('/admin_del/{id}','AdministratorController@admin_del');
			Route::post('/add_admin_do','AdministratorController@add_admin_do');

			//建议列表
			Route::get('/suggest_lists','SuggestController@suggest_lists');


			//导航列表
            Route::get('/nav_lists','NavSetController@lists');
            Route::get('/nav_edit/{id}','NavSetController@nav_edit');
            Route::post('/nav_do','NavSetController@nav_do');
		});
});



